package cn.broadsense.biz.service;

import cn.broadsense.biz.domain.CollectDataTask;
import cn.broadsense.biz.domain.CollectDataTaskChannel;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author pengxin
 * @description 针对表【t_collect_data_task_channel(采集任务点位列表)】的数据库操作Service
 * @createDate 2023-09-12 10:55:35
 */
public interface CollectDataTaskChannelService extends IService<CollectDataTaskChannel> {


    List<CollectDataTaskChannel> getListByCollectDataTaskId(Long collectDataTaskId);

    /**
     * 根据任务id查询列表
     *
     * @param taskId
     * @return
     */
    List<CollectDataTaskChannel> listByTaskId(Long taskId);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    CollectDataTaskChannel getById(Long id);


    /**
     * 根据channelId和collectDataTaskId查询
     * @param channelId
     * @param collectDataTaskId
     * @return
     */
    CollectDataTaskChannel getByChannelIdAndCollectDataTaskId(Long channelId,Long collectDataTaskId);


    /**
     * 根据点位名称搜索
     *
     *
     * @param channelName
     * @param channelSn
     * @return
     */
    List<Long> taskIdsSearchChannel(String channelName,String channelSn);
}
